package com.skyhub.service.impl;

import com.skyhub.common.domain.pojo.User;
import com.skyhub.mapper.EditorMapper;
import com.skyhub.service.EditorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EditorServiceImpl implements EditorService {

    @Autowired
    private EditorMapper editorMapper;

    @Override
    public void uploadAvatar(String url, Integer userId) {
        editorMapper.uploadAvatar(url,userId);
    }

    @Override
    public void updateUser(User user) {
        editorMapper.updateUser(user);
    }
}

